﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using Cartoons.Model;
using Microsoft.DeepZoomTools;

namespace BookComposer
{
    static class TitlesLoader
    {
        public static void LoadTitles()
        {
            var dirs = Directory.GetDirectories(@"E:\");
            CollectionCreator col = new CollectionCreator();
            col.ConversionImageQuality = 1;
            col.ConversionTileFormat = ImageFormat.Png;
            col.ImageQuality = 1;
            col.UseOptimizations = true;
            col.Create(Directory.GetDirectories(@"E:\").Select(dir => new Microsoft.DeepZoomTools.Image(Path.Combine(dir, "title.jpg"))).ToArray(), @"E:\Titles");
        }
    }
}